export default {
    install(app) {
        app.mixin({
            onLoad() {
                const page = getCurrentPages().pop()
                if (page && uni.showShareMenu) {
                    uni.showShareMenu({
                        withShareTicket: true,
                        menus: ['shareAppMessage', 'shareTimeline'],
                    })
                }
            },
        })
    },
}